public class Dog {
    String name;
    int age;
    double weight;


    public String say(){
        return "狗名:"+name+"\t"+"年龄"+age+"\t"+"重量"+weight;
    }
}
class TestDog{
    public static void main(String[] args) {
        Dog xiaobai =new Dog();
        xiaobai.name="小白";
        xiaobai.age=5;
        xiaobai.weight=18;
        System.out.println(xiaobai.say());
    }
}
